<?php

class Default_Model_Table_Scroller extends Zend_Db_Table_Abstract
{
    protected $_name = 'scroller';
    
    public function getUpperScroll()
    {
        $select = $this->select();
        $select->order('id DESC')
               ->where('upper=1')
               ->limit('5');
        $UpperScrollData = $this->_db->query($select)->fetchAll();
        return $UpperScrollData;
    }

        public function getLowerScroll()
    {
        $select = $this->select();
        $select->order('id DESC')
               ->where('upper=0')
               ->limit('5');
        $UpperScrollData = $this->_db->query($select)->fetchAll();
        return $UpperScrollData;
    }

}

